package com.tianji.learning.utils;

/**
 * @Author: 19311
 * @CreateTime: 2025-03-28
 * @Description: 表名称的上下文
 * @Version: 1.0
 */
public class TableInfoContext {
    private static final ThreadLocal<String> TL = new ThreadLocal<>();

    public static void setTableName(String tableName) {
        TL.set(tableName);
    }

    public static String getTableName() {
        return TL.get();
    }

    public static void remove() {
        TL.remove();
    }
}
